<template>
  <div class="header">
    <!-- 头像 -->
    <div class="head-sculpture">

    </div>
    <!-- 搜索栏 -->
    <van-search v-model="value" background="#4D648E" shape="round" placeholder="请输入搜索关键词" />
    <!-- 购物车 -->
    <router-link to="/cart">
      <van-icon name="shopping-cart-o" size="24" color="#fff" />
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'header',
}
</script>

<style lang="less" scoped>
.header {
  display: flex;
  align-content: center;
  background-color: #4D648E;

  .head-sculpture {
    height: 54px;
    width: 54px;
    margin: auto 0;
    margin-left: 12px;
    border-radius: 50%;
    background-color: orange;
  }
  .van-search {
    flex: 1;

    .van-search__content {
      background-color: #7183a4;
    }
  }
  .van-icon {
    display: block;
    height: 100%;
    margin-right: 12px;
    line-height: 54px;
  }
}
</style>
